package com.kim.bookshop.user.service;

import java.util.List;

import com.kim.bookshop.user.bean.User;

import exception.BookShopException;

public interface UserService {
	
	//加载信息
	public User load(String uid);

	//注册用户
	public void register(User form) throws BookShopException;
	
	//激活
	public void active(String code) throws BookShopException;
	
	//登录
	public User login(User form) throws BookShopException;
	
	//管理员登录
	public void admin(User form) throws BookShopException;
	
	//获取所有用户
	public List<User> getList();
	
	//获取管理员
	public List<User> getAdmin();
	
	//更新用户信息
	public void updatemsg(User user);
	
	//禁用用户
	public void kill(String uid);
	
	//启用
	public void restart(String uid); 
	
	//注销用户
	public void remove(String uid);
}
